package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Orders;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderService extends IService<Orders> {

    /**
     * 用户下单
     * @param orders
     */
    public Map<String, String> submit(Orders orders);

   Page<Orders> findPage(Integer page, Integer pageSize, Long number, String beginTime, String endTime);

    Page<Orders> findUserPage(Integer page, Integer pageSize);
}
